package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 数据字典-经销商级别
 *
 * @author lee
 * @version v1.0
 * @date 2020/12/23 10:19
 * @since v1.0
 */
@Getter
public enum DistributorLevelEnum {

    // 经销商级别
    ONE("1", "enum.distributorLevelEnum.name.one"),


    TWO("2", "enum.distributorLevelEnum.name.two"),


    THREE("3", "enum.distributorLevelEnum.name.three"),

    ;

    private String code;
    private String name;

    DistributorLevelEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
